package group.program.Controller;

import group.program.Service.NlpService;
import org.apache.http.HttpResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;

@RestController
public class NlpController {
    @Autowired
    private NlpService nlpService;
    //调用大语言模型示例
    @PostMapping("/nlp")
    public String nlp(HttpServletResponse httpResponse, @RequestBody String question){
        return nlpService.getNlpApi(httpResponse,question);
    }
}
